//
//  AppDelegate.m
//  YXImageBrowserDemo
//
//  Created by guo peng huang on 2021/5/16.
//

#import "YXAppDelegate.h"
#import "YXMainViewController.h"
#import "YXMainNavigationController.h"

@interface YXAppDelegate ()

@end

@implementation YXAppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    YXMainViewController *mainVC = [[YXMainViewController alloc] init];
    YXMainNavigationController *navVC = [[YXMainNavigationController alloc] initWithRootViewController:mainVC];
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    self.window.rootViewController = navVC;
    [self.window makeKeyAndVisible];
    return YES;
}


- (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
    return UIInterfaceOrientationMaskAll;
}


@end
